type FunType = <T extends tongxueT>(list: T) => T
type GetFunParams<T extends (...args: any) => any> = T extends (...arg: (infer O) []) => any ?  O []: never
type CustomParameters<T extends (...args: any) => any> = T extends (...args : infer P) => any ? P : never
type tongxueT = {
    name: string
    age: number
}
const testfan  = (list: CustomParameters<FunType>) => {
    list.forEach((item) => {
        item.age = 15
        item.sex = 1
    })
    return list
}

